﻿using Castle.ActiveRecord.Framework;
using Castle.ActiveRecord;
using System.Reflection;
using Castle.ActiveRecord.Framework.Config;

namespace Atendex.Infraestrutura.Repositórios
{
    public class InicializadorRepositorio
    {

        public static void InicializaRepositorio()
        {
            IConfigurationSource config = ActiveRecordSectionHandler.Instance;
            ActiveRecordStarter.Initialize(Assembly.Load("Atendex.Dominio"), config);
            //ActiveRecordStarter.DropSchema();
            //ActiveRecordStarter.CreateSchema();
            ////ActiveRecordStarter.UpdateSchema();
        }

    }
}
